#include <stdio.h>
#include <string.h>
#include "initProgram.h"
int main(int argc, const char* argv[])
{
	FILE* frp = fopen("tchList.txt","r");
	if(NULL == frp)
	{
		perror("fopen");
		return -1;
	}
	char str[256] = {};
	Teacher tch[100] = {};
	for(int i = 0; i<100; i++)
	{
		fgets(str,sizeof(Teacher),frp);
		sscanf(str," %s %s %d %c %hhd",tch[i].name,tch[i].password,&tch[i].id,&tch[i].sex,&tch[i].flag);
		printf("%s %s %d %c %hhd\n",tch[i].name,tch[i].password,tch[i].id,tch[i].sex,tch[i].flag);
	}
	fclose(frp);
	frp = NULL;
}
